#  两根蜡烛
#  细蜡烛  30 cm  -- > 3小时
#  粗蜡烛  20 cm ---> 5小时

# ? 多长时间后, 一样长
 # x
 #  6x == 15x
for x in range(1,181):
    if round((6*x == 15*x),4) or round(((180-x)*6+(300-x)*15),4)== round((50-(2*(6*x))),4):
        print(x)

for x in range(1,181):
    x = input('时间:')
    x = int(x)
    print(30-(round((x/6),0)))